package com.mit.web.business.remote
{
	import mx.rpc.AsyncResponder;
	import mx.rpc.AsyncToken;

	public class AsyncResponder extends AbstractResponder
	{
		private var token:AsyncToken;
		public function AsyncResponder(t:AsyncToken, defaultFaultListerner:Function=null)
		{
			super(defaultFaultListerner);
			this.token = t;
			token.addResponder(new mx.rpc.AsyncResponder(resultHandler, faultHandler));
			
		}
		
		private function resultHandler(data:Object, token:Object = null):void{
			super.notifyResultListeners(data);
		}
		private function faultHandler(data:Object, token:Object = null):void{
			super.notifyFaultListeners(data);
		}
	}
}